/**
 * Copyright (C) 2019-2021 杭州优诗科技有限公司
 *
 * This file is part of UnitSpirit.
 * @author wupingfu
 * @version 1.0.0
 * 
 **/
package com.unitspirit.sample.generics;

/**
 * @author wupf
 *
 */
/**
 * 子类定义了父类
 */
public class Son extends Base<DataClass> {

	public Son(String json) {
		super(json);
	}
}

/**
 * 数据类型继承Comparable
 */
class DataClass implements Comparable<DataClass> {

	@Override
	public int compareTo(DataClass o) {
		return 0;
	}
}